<?php
namespace App\Models\Operation;

use App\Models\Base\Photo;
use App\Models\Base\Task;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Database\Eloquent\Relations\MorphOne;

class KeyDuplication extends BaseModel
{
    protected $table = 'beesoft_key_duplications';
    protected $fillable = [
        'name',
        'email',
        'phone',
        'password',
    ];

    public function task(): MorphOne
    {
        return $this->morphOne(Task::class, 'morph');
    }
    public function photos(): MorphMany
    {
        return $this->morphMany(Photo::class, 'morph');
    }
}
